#include "../mqserver/mq_channel.hpp"


int main(){
    //构建信道管理类智能指针对象
    mq::ChannelManager::ptr mcmp = std::make_shared<mq::ChannelManager>();
    

    mcmp->openChannel("c1",std::make_shared<mq::VirtualHost>("host1", "./data/host1/message/", "./data/host1/host1.db"),
                    std::make_shared<mq::ConsumerManager>(),mq::ProtobufCodecPtr(),muduo::net::TcpConnectionPtr(),mq::threadpool::ptr());
    return 0;
}